<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	
	<title>Slides, A Slideshow Plugin for jQuery</title>
	
	<link rel="stylesheet" href="css/global.css">
	
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
	<script src="js/slides.min.jquery.js"></script>
	<script>
		$(function(){
			$('#slides').slides({
				preload: true,
				preloadImage: 'img/loading.gif',
				play: 5000,
				pause: 2500,
				hoverPause: true,
				animationStart: function(current){
					$('.caption').animate({
						bottom:-35
					},100);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationStart on slide: ', current);
					};
				},
				animationComplete: function(current){
					$('.caption').animate({
						bottom:0
					},200);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationComplete on slide: ', current);
					};
				},
				slidesLoaded: function() {
					$('.caption').animate({
						bottom:0
					},200);
				}
			});
		});
	</script>
</head>
<body>
	<div id="container">
		
		<div class="btnbox">
			<a target="_blank" href="carousel.html">演示二</a>
			<a target="_blank" href="standard.html">演示三</a>
			<a target="_blank" href="linking.html">演示四</a>
			<a target="_blank" href="multiple.html">演示五</a>
			<a target="_blank" href="product.html">演示六</a>
			<a target="_blank" href="simple.html">演示七</a>
		</div>
		
		<div id="example">
			<img src="img/new-ribbon.png" width="112" height="112" alt="New Ribbon" id="ribbon">
			<div id="slides">
				<div class="slides_container">
					<div class="slide">
						<a href="http://www.jsfoot.com/" title="145.365 - Happy Bokeh Thursday! | Flickr - Photo Sharing!" target="_blank"><img src="img/slide-1.jpg" width="570" height="270" alt="Slide 1"></a>
						<div class="caption" style="bottom:0">
							<p>Happy Bokeh Thursday!</p>
						</div>
					</div>
					<div class="slide">
						<a href="http://www.jsfoot.com/" title="Taxi | Flickr - Photo Sharing!" target="_blank"><img src="img/slide-2.jpg" width="570" height="270" alt="Slide 2"></a>
						<div class="caption">
							<p>Taxi</p>
						</div>
					</div>
					<div class="slide">
						<a href="http://www.jsfoot.com/" title="Happy Bokeh raining Day | Flickr - Photo Sharing!" target="_blank"><img src="img/slide-3.jpg" width="570" height="270" alt="Slide 3"></a>
						<div class="caption">
							<p>Happy Bokeh raining Day</p>
						</div>
					</div>
					<div class="slide">
						<a href="http://www.jsfoot.com/" title="We Eat Light | Flickr - Photo Sharing!" target="_blank"><img src="img/slide-4.jpg" width="570" height="270" alt="Slide 4"></a>
						<div class="caption">
							<p>We Eat Light</p>
						</div>
					</div>
					<div class="slide">
						<a href="http://www.jsfoot.com/" title="&ldquo;I must go down to the sea again, to the lonely sea and the sky; and all I ask is a tall ship and a star to steer her by.&rdquo; | Flickr - Photo Sharing!" target="_blank"><img src="img/slide-5.jpg" width="570" height="270" alt="Slide 5"></a>
						<div class="caption">
							<p>&ldquo;I must go down to the sea again, to the lonely sea and the sky...&rdquo;</p>
						</div>
					</div>
					<div class="slide">
						<a href="http://www.jsfoot.com/" title="twelve.inch | Flickr - Photo Sharing!" target="_blank"><img src="img/slide-6.jpg" width="570" height="270" alt="Slide 6"></a>
						<div class="caption">
							<p>twelve.inch</p>
						</div>
					</div>
					<div class="slide">
						<a href="http://www.jsfoot.com/" title="Save my love for loneliness | Flickr - Photo Sharing!" target="_blank"><img src="img/slide-7.jpg" width="570" height="270" alt="Slide 7"></a>
						<div class="caption">
							<p>Save my love for loneliness</p>
						</div>
					</div>
				</div>
				<a href="#" class="prev"><img src="img/arrow-prev.png" width="24" height="43" alt="Arrow Prev"></a>
				<a href="#" class="next"><img src="img/arrow-next.png" width="24" height="43" alt="Arrow Next"></a>
			</div>
			<img src="img/example-frame.png" width="739" height="341" alt="Example Frame" id="frame">
		</div>
		
		<h2 class="scrolltitle">默认状态属性</h2>
		<pre style="font-size:12px;">
$.fn.slides.option = {
	preload: false,                     // 预载图像，图像的幻灯片设置为true
	preloadImage: '/img/loading.gif',    // preloader的加载图像的名称和位置. 默认为 "/img/loading.gif"
	container: 'slides_container',       // 幻灯片容器类的名称. 默认为 "slides_container"
	generateNextPrev: false,            // 自动生成下一个/上一个按钮
	next: 'next',                        // 下一个按钮的类名
	prev: 'prev',                        // 上一个按钮的类名
	pagination: true,                   // 如果你不使用分页，您可以设置为false
	generatePagination: true,           // 自动生成分页
	prependPagination: false,           // 前置分页
	paginationClass: 'pagination',       // 用于分页的类的名称
	currentClass: 'current',             // 当前类的类名
	fadeSpeed: 350,                      // 设定的速度以毫秒为单位的褪色动画
	fadeEasing: '',                      // 扩展jQuery的插件前必须加载 http://gsgd.co.uk/sandbox/jquery/easing/
	slideSpeed: 350,                     // 设定的速度以毫秒为单位的滑动动画
	slideEasing: '',                     // 扩展jQuery的插件前必须加载 http://gsgd.co.uk/sandbox/jquery/easing/
	start: 1,                            // 设定的速度以毫秒为单位的滑动动画
	effect: 'slide',                     // 选择两种简单的切换过渡方式'slide, fade'
	crossfade: false,                   // 在基于图像的幻灯片淡出淡入图像
	randomize: false,                   // 设置为true，随机幻灯片
	play: 0,                             // 自动播放幻灯片, 正数将设置为true，并在毫秒时间之间的幻灯片动画
	pause: 0,                            // 点击下一页/上一页或分页暂停幻灯片. 正数将设置为true，以毫秒为单位的暂停时间
	hoverPause: false,                  // 设置为真和悬停在幻灯片将暂停
	autoHeight: false,                  // 设置为自动调整高度真实
	autoHeightSpeed: 350,                // 设置自动高度动画的时间，以毫秒为单位
	bigTarget: false,                   // 设置为true，整个幻灯片上点击链接到下一张幻灯片
	animationStart: function(){},      // 在动画的开始调用的函数
	animationComplete: function(){},   // 在动画完成后调用的函数
	slidesLoaded: function() {}        // 函数被调用时，滑块满载
};
	</pre>
		
		<div id="footer">
			<p>For full instructions go to <a href="http://slidesjs.com" target="_blank">http://slidesjs.com</a>.</p>
			<p>Slider design by Orman Clark at <a href="http://www.premiumpixels.com/" target="_blank">Premium Pixels</a>. You can donwload the source PSD at <a href="http://www.premiumpixels.com/clean-simple-image-slider-psd/" target="_blank">Premium Pixels</a></p>
			<p>&copy; 2010 <a href="http://nathansearles.com" target="_blank">Nathan Searles</a>. All rights reserved. Slides is licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache license</a>.</p>
		</div>
	</div>
</body>
</html>
